home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / CD32 / CD32_Support / examples / cdgsxl / Include / cdxl / runcdxl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-27  |  5.0 KB  |  167 lines

  1. /***********
  2.  
  3.  RunCDXL.h
  4.  
  5.  W.D.L 930330
  6.  
  7. ************/
  8.  
  9. /*
  10.  * COPYRIGHT: Unless otherwise noted, all files are Copyright (c) 1993-1999
  11.  * Amiga, Inc.  All rights reserved.
  12.  *
  13.  * DISCLAIMER: This software is provided "as is".  No representations or
  14.  * warranties are made with respect to the accuracy, reliability, performance,
  15.  * currentness, or operation of this software, and all use is at your own risk.
  16.  * Neither Amiga nor the authors assume any responsibility or liability
  17.  * whatsoever with respect to your use of this software.
  18.  */
  19.  
  20. #ifndef    RUNCDXL_H    // [
  21. #define    RUNCDXL_H
  22.  
  23. #define    XLTAG_Dummy        (TAG_USER + 32)
  24.  
  25. #define    XLTAG_XLFile        (XLTAG_Dummy+1)
  26. // ti_Data points to CDXL filename.
  27.  
  28. #define    XLTAG_View        (XLTAG_Dummy+2)
  29. // Open a View as opposed to a screen, ti_Data is a BOOL, default FALSE.
  30.  
  31. #define    XLTAG_Blit        (XLTAG_Dummy+3)
  32. /* If ti_Data is TRUE, load CDXL image into a buffer, then blit to
  33.  * display bitmap. Otherwize, just load CDXL image into display bitmap.
  34.  * default FALSE.
  35.  */
  36.  
  37. #define    XLTAG_Background    (XLTAG_Dummy+4)
  38. /* ti_Data points to ILBM filename to display in background.
  39.  * If specified, XLTAG_Blit is set.
  40.  */
  41.  
  42. #define    XLTAG_Left        (XLTAG_Dummy+5)
  43. // Left edge of CDXL image. If not specified, will center.
  44.  
  45. #define    XLTAG_Top        (XLTAG_Dummy+6)
  46. // Top edge of CDXL image. If not specified, will center. (Valid only for XLTAG_View).
  47.  
  48. #define    XLTAG_Volume        (XLTAG_Dummy+7)
  49. // Volume of CDXL audio, default 64.
  50.  
  51. #define    XLTAG_MultiPalette    (XLTAG_Dummy+8)
  52. // If ti_Data is TRUE, will load new palette for each frame, defualt FALSE.
  53.  
  54. #define    XLTAG_KillSig        (XLTAG_Dummy+9)
  55. // ti_Data is a ULONG signal which will abort CDXL playback.
  56.  
  57. #define    XLTAG_XLSpeed        (XLTAG_Dummy+10)
  58. // ti_Data is XLSpeed playback speed. Currently supports 75 and 150.
  59.  
  60. #define    XLTAG_XLEEC        (XLTAG_Dummy+11)
  61. // If ti_Data is TRUE, turn on error correction, default FALSE. (BOOL).
  62.  
  63. #define    XLTAG_XLPalette        (XLTAG_Dummy+12)
  64. /* If ti_Data is TRUE, use palette stored in CDXL. Useful if 
  65.  * XLTAG_Background is specified, default FALSE. (BOOL).
  66.  */
  67.  
  68. #define    XLTAG_LACE        (XLTAG_Dummy+13)
  69. // Open interlaced display. Will override ILBM or CDXL setting. (BOOL).
  70.  
  71. #define    XLTAG_NONLACE        (XLTAG_Dummy+14)
  72. // Open noninterlaced display. Will override ILBM or CDXL setting. (BOOL).
  73.  
  74. #define    XLTAG_HIRES        (XLTAG_Dummy+15)
  75. // Open HIRES display. Will override ILBM or CDXL setting. (BOOL).
  76.  
  77. #define    XLTAG_LORES        (XLTAG_Dummy+16)
  78. // Open LORES display. Will override ILBM or CDXL setting. (BOOL).
  79.  
  80. #define    XLTAG_Boxit        (XLTAG_Dummy+17)
  81. /* Draw a box with color 0 around CDXL image. May be needed to avoid
  82.  * HAM problems. (BOOL).
  83.  */
  84.  
  85. #define    XLTAG_SDBL        (XLTAG_Dummy+18)
  86. // Open a scan doubled display 
  87.  
  88. #define    XLTAG_NTSC        (XLTAG_Dummy+19)
  89. // Open an NTSC  display 
  90.  
  91. #define    XLTAG_PAL        (XLTAG_Dummy+20)
  92. // Open a PAL display 
  93.  
  94. #define    XLTAG_DEFMON        (XLTAG_Dummy+21)
  95. // Open a DEFAULT display 
  96.  
  97. #define    XLTAG_Pointer        (XLTAG_Dummy+22)
  98. // Intuition Pointer?
  99.  
  100. #define    XLTAG_XLModeID        (XLTAG_Dummy+23)
  101. // Use the CDXL's idea of ModeID.
  102.  
  103. #define    XLTAG_EndDelay        (XLTAG_Dummy+24)
  104. // How many ticks to delay at end before closing down screen
  105.  
  106. #define    XLTAG_Loop        (XLTAG_Dummy+25)
  107. // Loop count
  108.  
  109. #define    XLTAG_CDXL        (XLTAG_Dummy+26)
  110. // play XL from CD
  111.  
  112. #define    XLTAG_DOSXL        (XLTAG_Dummy+27)
  113. // play XL from DOS
  114.  
  115. #define    XLTAG_NoPromote        (XLTAG_Dummy+28)
  116. // Make sure a MonitorID is or'ed into the ModeID to avoid mode promotion.
  117.  
  118. #define    XLTAG_LMBAbort        (XLTAG_Dummy+29)
  119. // Left Mouse Button aborts playback
  120.  
  121. #define    XLTAG_RMBAbort        (XLTAG_Dummy+30)
  122. // Right Mouse Button aborts playback
  123.  
  124. #define    XLTAG_FIREAbort        (XLTAG_Dummy+31)
  125. // Joystick Fire Button aborts playback
  126.  
  127. #define    XLTAG_MSGPortName    (XLTAG_Dummy+32)
  128. // ti_Data points to the name of a message port to create and get
  129. // messages from.
  130.  
  131. #define    XLTAG_HAM        (XLTAG_Dummy+33)
  132. // Open HAM display. Will override ILBM or CDXL setting. (BOOL).
  133.  
  134. #define    XLTAG_NONHAM        (XLTAG_Dummy+34)
  135. // Open NONHAM display. Will override ILBM or CDXL setting. (BOOL).
  136.  
  137. #define    XLTAG_EHB        (XLTAG_Dummy+35)
  138. // Open EXTRA_HALFBRITE display. Will override ILBM or CDXL setting. (BOOL).
  139.  
  140. #define    XLTAG_NONEHB        (XLTAG_Dummy+36)
  141. // Open NONEXTRA_HALFBRITE display. Will override ILBM or CDXL setting. (BOOL).
  142.  
  143. #define    XLTAG_Patch_OpenWB    (XLTAG_Dummy+37)
  144. // SetFunction OpenWorkbench() so that when the screen closes, if its the
  145. // last screen in the system, it will not force the WorkBench screen to open
  146.  
  147.  
  148.  
  149. // return codes
  150.  
  151. #define RC_OK            0    /* No error */
  152. #define RC_MISSING_FILE        1    /* Required filename missing */
  153. #define RC_READ_ERROR        2    /* Error while reading file */
  154. #define RC_CANT_FIND        3    /* Can't find file */
  155. #define RC_NO_MEM        4    /* Not enough memory for operation */
  156. #define RC_NO_CDDEVICE        5    /* Could not open cd/cdtv device */
  157. #define RC_NO_AUDIODEVICE    6    /* Could not open audio device */
  158. #define RC_NO_WIN        7    /* Could not open window */
  159. #define RC_NO_SC        8    /* Could not open screen */
  160. #define RC_BAD_PAN        9    /* File is not a standard PAN file */
  161. #define RC_FAILED        10    /* Something failed */
  162. #define RC_ABORTED        11    /* Program was aborted */
  163.  
  164. int RunCDXL( ULONG tag, ... );
  165.  
  166. #endif                // ]
  167.